package tests;

import java.util.ArrayList;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import sauvaget.Color;
import sauvaget.Image;
import sauvaget.IttensTable;

public class TestImage3 {
	private Image image;
	private IttensTable ittensTable;
	private ArrayList<Color> sectorR, sectorG;
	
@Before
    public void createColor(){
		Color red1 = new Color( 4, 38, 52, 5830);
		Color red2 = new Color( 4, 38, 52, 5830);
		Color red3 = new Color( 4, 38, 52, 5830);
		
		sectorR = new ArrayList<Color>();
		sectorR.add(red1);
		sectorR.add(red2);
		sectorR.add(red3);
		
		Color green1  = new Color( 90, 50, 50, 5830);
		Color green2  = new Color( 90, 50, 50, 5830);
		Color green3  = new Color( 90, 50, 50, 5830);
		Color green4  = new Color( 90, 50, 50, 5830);
		Color green5  = new Color( 90, 50, 50, 5830);
		Color green6  = new Color( 90, 50, 50, 5830);
		Color green7  = new Color( 90, 50, 50, 5830);
		
		sectorG = new ArrayList<Color>();
		sectorG.add(green1);
		sectorG.add(green2);
		sectorG.add(green3);
		sectorG.add(green4);
		sectorG.add(green5);
		sectorG.add(green6);
		sectorG.add(green7);
		
		// compor a imagem - problema no construtor
		ittensTable = new IttensTable();
		
    }

@Test
	public void verifyHarmony(){
		Assert.assertTrue(ittensTable.verifyHarmony(image));
	}


}
